package com.xu.mode.decoration;


public class Decorator extends Component {
    private Component component;

    public void setComponent(Component component) {
        this.component = component;
    }

    @Override
    public void Opertion() {
        if (component != null) {
            component.Opertion();
        }

    }
}
